package com.sx.gongzhong.model;

import java.io.Serializable;
import java.util.List;

import xiaofei.library.datastorage.annotation.ClassId;
import xiaofei.library.datastorage.annotation.ObjectId;

/**
 * Created by XZY on 2017/01/09
 * 所有的公共字典项的对象
 */
@ClassId("PublicTotalBean")
public class PublicTotalBean implements Serializable{

    /**
     * children : []
     * code : appealType
     * gradation : 0
     * id : 2d084cd9f5b211e7a12b00163e0297af
     * name : 诉求类型
     * parentId :
     * sourcesState : 0
     * visible : true
     */
    @ObjectId
    private String code;
    private int gradation;
    private String id;
    private String name;
    private String parentId;
    private int sourcesState;
    private boolean visible;
    private List<PublicBean> children;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public int getGradation() {
        return gradation;
    }

    public void setGradation(int gradation) {
        this.gradation = gradation;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public int getSourcesState() {
        return sourcesState;
    }

    public void setSourcesState(int sourcesState) {
        this.sourcesState = sourcesState;
    }

    public boolean isVisible() {
        return visible;
    }

    public void setVisible(boolean visible) {
        this.visible = visible;
    }

    public List<PublicBean> getChildren() {
        return children;
    }

    public void setChildren(List<PublicBean> children) {
        this.children = children;
    }

}

